package com.gexin.common;

import com.gexin.common.utils.StringUtil;
import com.jfinal.kit.PropKit;

/**
 * 一些公常量
 * @author 肖得明
 *
 */
public class AppGlobal {
	
	/**
	 * 网站的根目录
	 */
	public final static String  Web_Addr=StringUtil.getBundelPath ("main","Web_Addr");
	/**
	 * 静态资源存放的位置
	 */
	public final static String  Base_Path=StringUtil.getBundelPath ("main","Base_Path");
	
	/**
	 * 七牛秘钥
	 */
	public final static String  Qiniu_AK=StringUtil.getBundelPath ("config","qiniu.ak");
	
	/**
	 * 七牛秘钥
	 */
	public final static String  Qiniu_SK=StringUtil.getBundelPath ("config","qiniu.sk");
	/**
	 * 七牛文件域
	 */
	public final static String  Qiniu_Bucket=StringUtil.getBundelPath ("config","qiniu.bucket");
	/**
	 * 七牛上传的域名
	 */
	public final static String  Qiniu_Addr=StringUtil.getBundelPath ("config","qiniu.addr");
	
	/**
	 * 账户加密的私钥 
	 */
	public final static String  Account_Key=PropKit.get("Account_Key");
	/**
	 * 网站域名
	 */
	public final static String  Host_Domain_Name=PropKit.get("Host_Domain_Name");
	
	/**
	 * 系统日志功能的开关
	 */
	public final static boolean  Logger_Switch= PropKit.getBoolean("Logger_Switch");

	
	
	/**
	 * 系统是否是开发模式
	 */
	public final static boolean  dev_Mode=StringUtil.getBundelPath ("main","devMode").trim().equals("true")?true:false;


	/**
	 * 分布式服务器的ID
	 */
	public final static String  Server_Id=StringUtil.getBundelPath("main","Server_ID");
	
}
